<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<#include "taglib.html">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title></title>
    <#include "common.html">
</head>
<body>
	<div class="header" id="header">
		<div class="logo">有妹管理系统</div>
        <ul>
	        <#if Session["sessionUser"]?exists>
	        	<li><span>${sessionUser.userName} ，你好！</span></li>
	        </#if>
            <#if Session["sessionUser"]?exists>
			<li><a href="/settings/user_settings.do" class="user-settings">个人设置</a></li>
			<li><a href="/logout.do" class="exit">退出</a></li>
			</#if>
        </ul>
        <div class="change-theme">
        	<span>切换风格</span>
        	<span class="green themebtn" title="清新绿" type="style-green"><i></i></span>
        	<span class="blue themebtn" title="商务蓝" type="style-blue"><i></i></span>
        </div>
        <script type="text/javascript">
        	$(function(){
        	    $(".change-theme span.themebtn[type="+umei.cookie_style+"]").addClass("selected");
        		$(".change-theme span.themebtn").click(function(){
        			var style = $(this).attr("type");
        			if(style=="style-blue"){
        			    $("#style-blue").prop("rel","stylesheet");
        			}else if(style=="style-green"){
        			    $("#style-blue").prop("rel","");
        			}
        			$.cookie("curTheme",style,{expires:30,path:'/',domain:'umei.ulewo.com'});
        			$(this).addClass("selected").siblings().removeClass("selected");
        		});
        	})
        </script>
</div>
